<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formulario de Borrado de Matriculas</title>
<link href="formato.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="deletematricula.php" method="post" name="dal" id="dal">
  <p>
    <label for="select"><br />
    Seleccione el id del grupo</label>
    <select name="select" id="select">
    <?php 
	mysql_connect("localhost","root","favirguezc");
        mysql_select_db("ieee");
        $result=mysql_query("SELECT * FROM MATRICULAS");
    while ($row = mysql_fetch_array($result)){
    	echo "<option value= ".$row['PER_ID']."|".$row['GRU_ID'].">".$row['PER_ID']." ".$row['GRU_ID']."</option>";
    }
	mysql_free_result($result);?>
    
    </select>
    <input type="submit" name="Submit" value="Eliminar"/> 
       
  </p>
</form> 
    <br/><a href="index.html"><img src="Images/home.png" width="50" height="50" title="index" /></a>
</body>
</html>